package com.javasm.springmybatis.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author：xieyunfan
 * @Version：1.0
 * @Date：2021/12/29-21:53
 * @Since:jdk1.8
 * @Description:
 */
//单独的configuration的具体意思
@Configuration
public class MyWebConfig implements WebMvcConfigurer {


    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        //应该类似于重定向
       registry.addRedirectViewController("/","login.html");
    }


}
